home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / member_array < prev    next >
Text File  |  2001-04-06  |  524b  |  16 lines

  1. SYNOPSIS
  2.         int member_array(mixed item, mixed *arr)
  3.         int member_array(mixed item, string arr)
  4.  
  5. DESCRIPTION
  6.         Returns the index of the first occurence of item in array arr,
  7.         or occurence of a character in a string. If not found, then -1
  8.         is returned.
  9.         
  10.         If you want to search through an alist, use assoc() because
  11.         member_array() is good for unsorted but assoc() is faster for
  12.         sorted arrays.
  13.  
  14. SEE ALSO
  15.         alists(LPC), mappings(LPC), assoc(E), slice_array(E)
  16.